/**
 * Copyright © 2014 Creativor Studio.
 * About license information, please see LICENSE.txt.
 */
package org.rayson.demo.server;

import java.io.IOException;

import org.rayson.api.server.exception.DuplicateServiceException;
import org.rayson.api.server.exception.ServiceException;
import org.rayson.server.Server;

/**
 * TODO Add type description here. Client testing command is : <br>
 * curl -v
 * "http://127.0.0.1:8080/org.rayson.demo.server.TestProtocol/echo?msg=hello"
 * 
 * @author creativor
 */
public class ServerDemo {
	public static void main(final String[] args) throws IOException,
			InterruptedException, DuplicateServiceException, ServiceException {
		final Server server = new Server(8080);
		server.registerService(new TestService());
		server.start();
	}

}
